from django.db import models

class Game(models.Model):
    name = models.CharField(max_length=32)

class Player(models.Model):
    game = models.ForeignKey(Game, on_delete=models.CASCADE)
    #user = models.ForeignKey(, on_delete=models.CASCADE)
    name = models.CharField(max_length=32)

class StarSystem(models.Model):
    game = models.ForeignKey(Game, on_delete=models.CASCADE)
    name = models.CharField(max_length=32)
    res1 = models.SmallIntegerField()
    res2 = models.SmallIntegerField()
    res3 = models.SmallIntegerField()
    planets = models.SmallIntegerField()
    xpos = models.SmallIntegerField()
    ypos = models.SmallIntegerField()
